package cz.data.domain.standard.rpc;

import cz.data.common.annotation.DataInner;
import cz.data.domain.standard.model.entity.DictEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(contextId = "StandardDictFeign", value = "standard-domain-api")
public interface StandardDictFeign {

    @DataInner
    @GetMapping("/dict/type/{id}")
    List<DictEntity> getDictEntityByDictTypeId(@PathVariable("id") String id);

    @DataInner
    @GetMapping("/dict/gbType/{gbTypeCode}")
    List<DictEntity> getDictEntityByDictGbTypeCode(@PathVariable("gbTypeCode") String gbTypeCode);
}
